import request from "@/utils/request.js";
/**
 * 查询审批设置列表
 * @param params
 */
export const pageList = query => {
  return request({
    url: "/purchase/approvalSet/pageList",
    method: "get",
    params: query
  });
};

/**
 * 审批人选择查询
 * @param params
 */
export const approvalUserSelectQuery = query => {
  return request({
    url: "/purchase/approvalSet/approvalUserSelectQuery",
    method: "get",
    params: query
  });
};

/**
 * 设置审批人
 * @param params
 */
export const addApprovalSetUsers = data => {
  return request({
    url: "/purchase/approvalSet/addApprovalSetUsers",
    method: "post",
    data
  });
};
